<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>透明度</title>
  <style>
    div {
      background-color: red;
      opacity: 0.9;
    }

    img {
      opacity: 0.5;
    }
  </style>
</head>

<body>
  <div>
    <img src="./images/asset-logoIco.png" alt="">
  </div>
</body>

</html>